﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wp.DAL;
using Wp.BLL;

public partial class Controls_Focus : System.Web.UI.UserControl
{
    private void LoadData()
    {
       int number= TblOptionManager.CreateInstant().GetOption("number-items-focus").Trim().ToInt();
       List<TblPostsEntity> list = TblPostsManager.CreateInstant().SelectTblPostByTags("PQ", number);
        this.rpt.DataSource = list;
        this.rpt.DataBind();
        this.rpt2.DataSource = list;
        this.rpt2.DataBind();
        
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!base.IsPostBack)
        {
            this.LoadData();
        }
    }

}